<?

function V_Contacts($arrayData) {
    $ulr = "?" . MODUL . "=contacts&" . ACTION . "=contacts";
    ?>
    <div id="container">
        <h3>Liên Hệ</h3>
        <div>
    	<form enctype="multipart/form-data" action="<?= $ulr ?>" method="post" name="frm" onSubmit="return validateForm();">
    	    <table width="100%">
    		<tr style="line-height: 30px">
    		    <td width="10%" style="font-weight: bold;color: #666666">Tên</td>
    		    <td width="80%"><input id="fullname" name="fullname" type="text" size="50"/></td>
    		</tr>
    		<tr style="line-height: 30px">
    		    <td width="10%" style="font-weight: bold;color: #666666">Email</td>
    		    <td width="80%"><input id="email" name="email" type="text" size="50"/></td>
    		</tr>
    		<tr style="line-height: 30px">
    		    <td width="10%" style="font-weight: bold;color: #666666">Tiêu Đề</td>
    		    <td width="80%"><input id="title" name="title" type="text" size="50"/></td>
    		</tr>
    		<tr style="line-height: 30px">
    		    <td width="10%" style="font-weight: bold;color: #666666">Nội Dung</td>
    		    <td width="80%"><textarea id="content" name="content" style="width: 450px;height: 200px"></textarea></td>
    		</tr>
    		<tr style="line-height: 30px">
    		    <td width="10%"></td>
    		    <td width="80%"><input type="submit" name="Submit" value="Gửi" style="width:100px"/></td>
    		</tr>
    	    </table>
    	</form>
        </div>
        <h3>Thông tin liên hệ</h3>
        <div>
    	<h4><a class="name_site"><font color="#800000"><span class="Title"><font size="5" face="Comic Sans MS"><em><?= $arrayData[3]['info_content'] ?></em></font></span></font></a></h4>
    	<p>- <strong>Địa Chỉ</strong>: <em><?= $arrayData[4]['info_content'] ?></em></p>
    	<p>- <strong>SĐT</strong>: <?= $arrayData[5]['info_content'] ?></p>
    	<p>- <strong>Email</strong>: <em><u><?= $arrayData[6]['info_content'] ?></u></em></p>
    	<p>&nbsp;</p>
        </div>
        <div align="center">
	    <?
	    include_once 'include/map_address.php';
	    V_Map_Add('500px', '700px', '17', $arrayData[8]['info_content']);
	    ?>
        </div>        
    </div> 
    <?
}
?>
<script>
    function validateForm() {
	if (document.getElementById('fullname').value == "") {
	    alert('Bạn chưa điền tên!.');
	    return false;
	}
	if (document.getElementById('email').value == "") {
	    alert('Bạn chưa điền Email!.');
	    return false;
	}
	return true;
    }
</script>